package com.xzl.manger.model;

import com.xzl.shop.model.Cart;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class OrderGood {
    private Integer id;
    private String orderId;
    private Integer gId;
    private String gName;
    private BigDecimal gPrice;
    private Integer count;
    private BigDecimal money;
    public OrderGood(Cart cart){
        gId = cart.getGId();
        gName = cart.getGName();
        gPrice = cart.getGPrice();
        count = cart.getCount();
        money = cart.getMoney();
    }
}
